 <?php
	use yii\helpers\Html;
	use yii\helpers\Url;
	use yii\bootstrap\ActiveForm;

	 $this->title = 'detail';
 ?>
<section class="content">
  <div class="row">
  	<div class="col-md-12">
      <div class="box box-danger">
        <div class="box-header with-border">
          <h3 class="box-title">订单详情</h3>
        </div>
        <div class="box-body">
		    <div class="form-group">	
              <div class="row">
				<div class="col-xs-4">
					<label>订单对接人</label>
					<input type="text" class="form-control" readonly value="<?= $employee[$model->suser]?>" />
				</div>
				<div class="col-xs-4">
					<label>订单归属地</label>
					<input type="text" class="form-control" readonly value="<?= $model->order_address?>" />
				</div>
				<div class="col-xs-4">
					<label>订单生成时间</label>
					<input type="text" class="form-control" readonly value="<?= $model->create_time?date('Y-m-d', $model->create_time):''?>" />
				</div>
			 </div>
			</div>
			<div class="form-group">
              <div class="row">
                <div class="col-xs-3">
                  <label>客户</label>
                  <input type="text" class="form-control" value="<?= $customer[$model->customer]?>" readonly />
              	</div>
                <div class="col-xs-3">
                  <label>检测项目</label>
				  <input type="text" class="form-control" readonly value="<?= $model->product?>" />
                </div>
                <div class="col-xs-3">
                  <label>购买日期</label>
				  <input type="text" class="form-control" readonly value="<?= $model->purchase_time?date('Y-m-d', $model->purchase_time):''?>" />
                </div>
                <div class="col-xs-3">
                  <label>检测时间</label>
                  <input type="text" class="form-control" readonly value="<?= $model->check_time?date('Y-m-d', $model->check_time):''?>" />
                </div>
               </div> 
            </div>
			<div class="form-group">
              <div class="row">
                <div class="col-xs-12">
                  <label>检测地点</label>
                  <textarea class="form-control" readonly><?= $model->check_address?></textarea>
                </div>
              </div>
            </div>
			<div class="form-group">
              <div class="row">
                <div class="col-xs-6">
                  <label>产品缴费人</label>
                  <input type="text" class="form-control" value="<?= $model->purchase_user?>" readonly />
                </div>
                <div class="col-xs-6">
                  <label>缴费人与产品使用人关系</label>
                  <input type="text" class="form-control" value="<?= $model->realtion?>" readonly />
                </div>
              </div>
            </div>
			<div class="form-group">
              <div class="row">
                <div class="col-xs-4">
                  <label>出库时间</label>
                  <input type="text" class="form-control" value="<?= $model->out_storage_time?date('Y-m-d', $model->out_storage_time):''?>" readonly />
                </div>
                <div class="col-xs-4">
                  <label>快递单号</label>
                  <input type="text" class="form-control" readonly value="<?= $model->delivery_code?>"/>
                </div>
                <div class="col-xs-4">
                  <label>签收时间</label>
                  <input type="text" class="form-control" readonly value="<?= $model->sign_time?date('Y-m-d', $model->sign_time):''?>"/>
                </div>
              </div>
            </div>
          <div class="box-footer">
          <input class="btn btn-warning btn-close" readonly value="关闭" style="width:200px;" />
          </div>
        </div>
      </div>
  	</div>
  </div>
</section>

<script type="text/javascript" src="js/jquery.js"></script>
<script>
	  $(".btn-close").click(function(){
	  	location.href = history.go(-1);
	  });
</script>